package Interface;

import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;

public class FenBouton extends JFrame implements ActionListener {
	private JButton monBouton;
	public FenBouton() {
		setTitle("Premier Bouton");
		setSize(300,200);
		monBouton = new JButton("ESSAI");
		Container c = getContentPane();
		c.setLayout(new FlowLayout());
		c.add(monBouton);
		monBouton.addActionListener(this);
	}
	public void actionPerformed (ActionEvent ev){
		System.out.println("action sur bouton ESSAI");
	}
}
